package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcQhmMapper;
import com.ruoyi.jhc.domain.JhcQhm;
import com.ruoyi.jhc.service.IJhcQhmService;

/**
 * 气化煤录入Service业务层处理
 * 
 * @author lgx
 * @date 2022-11-16
 */
@Service
public class JhcQhmServiceImpl implements IJhcQhmService 
{
    @Autowired
    private JhcQhmMapper jhcQhmMapper;

    /**
     * 查询气化煤录入
     * 
     * @param cDate 气化煤录入主键
     * @return 气化煤录入
     */
    @Override
    public JhcQhm selectJhcQhmByCDate(String cDate)
    {
        return jhcQhmMapper.selectJhcQhmByCDate(cDate);
    }

    /**
     * 查询气化煤录入列表
     * 
     * @param jhcQhm 气化煤录入
     * @return 气化煤录入
     */
    @Override
    public List<JhcQhm> selectJhcQhmList(JhcQhm jhcQhm)
    {
        return jhcQhmMapper.selectJhcQhmList(jhcQhm);
    }

    /**
     * 新增气化煤录入
     * 
     * @param jhcQhm 气化煤录入
     * @return 结果
     */
    @Override
    public int insertJhcQhm(JhcQhm jhcQhm)
    {
        return jhcQhmMapper.insertJhcQhm(jhcQhm);
    }

    /**
     * 修改气化煤录入
     * 
     * @param jhcQhm 气化煤录入
     * @return 结果
     */
    @Override
    public int updateJhcQhm(JhcQhm jhcQhm)
    {
        return jhcQhmMapper.updateJhcQhm(jhcQhm);
    }

    /**
     * 批量删除气化煤录入
     * 
     * @param cDates 需要删除的气化煤录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcQhmByCDates(String[] cDates)
    {
        return jhcQhmMapper.deleteJhcQhmByCDates(cDates);
    }

    /**
     * 删除气化煤录入信息
     * 
     * @param cDate 气化煤录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcQhmByCDate(String cDate)
    {
        return jhcQhmMapper.deleteJhcQhmByCDate(cDate);
    }
}
